package com.qnkf.controller;

import com.alibaba.fastjson.JSONObject;
import com.qnkf.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Dercsription
 * @Author Administrator
 * @CreateDate 2021/8/28 14:47
 **/
@RestController
@RequestMapping("home")
public class LoginController extends BaseController {

    /**
     * 手机登录 loginPhone
     * @param request
     * @return
     */
    @PostMapping("loginPhone")
    public ResultModel loginPhone(@RequestBody JSONObject request) {
        return homeService.loginPhone(request);
    }
}
